package com.guigu.tms.manager.feign.wj;

import com.github.pagehelper.PageInfo;
import com.guigu.tms.commons.entity.base.PdTransportLineType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(value = "tms-base",path = "/base/pdTransportLineType",contextId = "LizzApi6")
public interface TransportLineTypeFeignClient {

    @PostMapping("/findTransportLineType")
    PageInfo<PdTransportLineType> findTransportLineType(@RequestBody Map<String, String> map);

    @PostMapping("/AddTransportLineType")
    int AddTransportLineType(@RequestBody PdTransportLineType pdTransportLineType);

    @PutMapping("/UpdateTransportLineType")
    int UpdateTransportLineType(@RequestBody PdTransportLineType pdTransportLineType);

    @DeleteMapping("/DeleteTransportLineTypeByid")
    int DeleteTransportLineTypeByid(@RequestParam String id);
}
